package com.pro.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Objects;

/**
 * @ClassName: DeptPlus
 * @Author: 笑笑
 * @DATE: 2021/11/9
 * @TIME: 上午 10:31
 */
public class DeptPlus extends Dept{
    private String createName;//创建人名字

    public DeptPlus() {
    }

    public DeptPlus(String createName) {
        this.createName = createName;
    }

    public DeptPlus(long id, String deptName, String deptDescirbe, long parentId, String createId, String createDate, String updateId, Date updateDate, String status, String createName) {
        super(id, deptName, deptDescirbe, parentId, createId, createDate, updateId, updateDate, status);
        this.createName = createName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        DeptPlus deptPlus = (DeptPlus) o;
        return Objects.equals(createName, deptPlus.createName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), createName);
    }

    @Override
    public String toString() {
        return "DeptPlus{" +
                "createName='" + createName + '\'' +
                '}' + super.toString();
    }
}
